<template>
<div class="find-wrapper">
  <carTitle>
    <span slot="title-one" class="title-one">我的车行</span>
    <span slot="title-two" class="title-two">车行说明说明车行说明说明车行说明说明车行说明说明</span>
  </carTitle>

  <div class="mycar-body">
    <el-row>
      <el-col :span="22" class="body-wrapper">


        <hr>


        <!-- 表格-->
        <div class="tab">
          <el-table
            ref="multipleTable"
            :data="tableData4"
            border
            tooltip-effect="dark"
            style="width: 100%"
          >
            <el-table-column
              type="selection"
              width="55">
            </el-table-column>
            <el-table-column
              label="车辆信息">
              <template scope="scope">
                <span>{{ scope.row.carNum }}</span>
                <span>{{ scope.row.type }}</span>
                <span>{{ scope.row.lenght }}</span>
                <span>{{ scope.row.weight }}</span>
                <span>{{ scope.row.capacity}}</span>
              </template>
            </el-table-column>
            <el-table-column
              prop="name"
              label="司机信息"
              width="120">
            </el-table-column>
            <el-table-column
              label="定位信息"
            >
              <template scope="scope">
                <p class="location">{{scope.row.location}}</p>
                <p>{{scope.row.time}}</p>
              </template>
            </el-table-column>
            <el-table-column
              prop="address"
              label="操作" class="caozuo"
            >
              <template scope="scope">
                <span class="btn-b" v-if="scope.row.cza">{{scope.row.cza}}</span>
                <span class="btn-b" v-if="scope.row.czb">{{scope.row.czb}}</span>
                <span class="btn-b" v-if="scope.row.czc">{{scope.row.czc}}</span>
                <span class="btn-green" v-if="scope.row.czd">{{scope.row.czd}}</span>
                <span class="btn-g" v-if="scope.row.del">{{scope.row.del}}</span>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <!--操作按钮-->
        <div class="czBtn">
          <span>操作功能：</span>
          <el-button type="success" size="mini">新增车辆</el-button>
          <el-button type="success" size="mini">发送短信</el-button>
          <el-button type="success" size="mini">车辆分享</el-button>
          <el-button type="success" size="mini">录入运单</el-button>
        </div>

      </el-col>
    </el-row>
  </div>
</div>
</template>

<script>
  import carTitle from '@/components/car-title'
    export default {
        components: {
          carTitle
        },
      data(){
            return{
              tableData4:[
                {name:1}
              ]
            }
      }
    }
</script>
<style lang="scss" scoped>
  .title {
    padding: 35px 0 33px 30px;
  .title-one {
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: #3149a9 !important;
  }
  .title-two {
    line-height: 20px;
    font-size: 14px;
    color: #8b9aaf;
  }
  i {
    font-size: 20px;
    font-weight: 700;
    color: #acafc2;
  }
  }

  .find-wrapper {
    background-color: #fafbff;

  }

  .body-wrapper {
    background: #ffffff;
    margin-left: 30px;
    padding: 30px 20px;
    border: 1px solid #e7e8ed;
    .el-checkbox__inner:nth-child(1) {
      border-radius: 50%;
      border: 1px solid red !important;
    }
    .el-row {
      margin: 10px 0;
    }
    .el-button {
      /*background-color: #3052ac;*/
    }
    #find {
      width: 100%;
      background-color: #3052ac;
      outline: none;

    }
    .input-title {
      line-height: 36px;
      text-align: right;
      height: 36px;
      padding-right: 15px;
      font-size: 14px;
      font-weight: 700;
      color: #848bbf;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .input-btn {
      height: 36px;
      .input {
        background-color: #f5f6fb;
      }
      .el-input__inner {
        background-color: red;
        border: 1px solid yellow;
      }
    }
    hr {
      border: 0;
      height: 2px;
      background-color: #e6e8f4;
    }
    .el-option {
      margin-top: 36px;
    }
    .location {
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .btn-g {
      font-size: 12px;
      color: gray;
      font-weight: 700;
    }
    .btn-b {
      font-size: 12px;
      color: #6a8fe1;
      font-weight: 700;
      border-right: 1px solid gray;
      padding: 0 3px 0 3px;
      line-height: 12px;
    }
    .btn-green {
      font-size: 12px;
      color: greenyellow;
      font-weight: 700;
      border-right: 1px solid gray;
      padding: 0 5px;
      line-height: 12px;
    }
  }

</style>
